package com.feng.aop.mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class Stu_mapper {

    @Autowired
    JdbcTemplate jdbcTemplate;


    //插入方法
    public void insert(){
        String sql="insert into stu(stu_name,stu_sex) values(?,?)";
        jdbcTemplate.update(sql,"小丽","女");

    }
}
